<?php
namespace app\index\controller;

use think\Controller;
use think\Request;
class BaseHome extends Controller{
    function _initialize(){
       
        if (! defined('CONTROLLER_NAME')) {
            define('CONTROLLER_NAME', $this->request->controller());
        }
        if (! defined('ACTION_NAME')) {
            define('ACTION_NAME', $this->request->action());
        }
       
        $sys=db('sys')->where("id=1")->find();
        $this->assign("sys",$sys);
        $seo=db('seo')->where("id=1")->find();
        $this->assign("seo",$seo);
        
        $right=db("lb")->where("fid=3 and status=1")->order("sort asc")->select();
        $this->assign("right",$right);
        
        $lbd=db("lb")->where("fid=23")->find();
        $this->assign("lbd",$lbd);
        
        $recas=db("cases_type")->order("ty_sort asc")->select();
        $this->assign("recas",$recas);
    }
    public function _empty()
    {
        
        $this->redirect('Index/index');
    } 
   
}